<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<a href="#box" class="btn btn-info" data-toggle="collapse">这是a链接</a>
<p data-target="#box"  data-toggle="collapse">这是p</p>
<div id="box" class="collapse">
    展示出来的内容
</div>
<div id="accordion">
    <div class="panel panel-default">
        <div class="panel-heading" id="headingOne">
            <h4 class="panel-title">
                <a href="#collapseOne" data-toggle="collapse" data-parent="#accordion">
                    点击11111
                </a>
            </h4>
        </div>
        <div id="collapseOne" class="panel-collapse collapse in">
            <div class="panel-body">
                展示出来内容11111
            </div>
        </div>
    </div>
    
    <div class="panel panel-default">
        <div class="panel-heading" id="headingTwo">
            <h4 class="panel-title">
                <a href="#collapseTwo" data-toggle="collapse" data-parent="#accordion">
                    点击22222
                </a>
            </h4>
        </div>
        <div id="collapseTwo" class="collapse ">
            <div class="panel-body">
                展示出来内容22222
            </div>
        </div>
    </div>
</div>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>


</body>
</html>